import LocalStorage from 'localstorage'

// create a localStorage命名空间
const cityLocalStorage = new LocalStorage('city')
// 从localStorage中读取cityname 或者使用默认城市名
let defaultCityName = '浙江'
try {
  defaultCityName = cityLocalStorage.get('city')[1].cityName
} catch (e) {
  console.log('LocalStorage操作错误')
}


export  const state = {
     city : defaultCityName
}